<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core">
<h:head>
	<title><ui:insert name="title">Default Title</ui:insert></title>
	<link rel="stylesheet" type="text/css"
		href="#{request.contextPath}/css/styles.css" />
</h:head>
<h:body>
	<table align="center" cellspacing="0" style="padding-bottom: 5px;">
		<tr>
			<td><h:graphicImage url="/images/logo.jpg" /></td>
		</tr>
		<tr>
			<table cellspacing="0">
				<tr>
					<td width="200px" valign="top" style="padding-top: 10px;">
					Salut<h:outputText value="#{request.authType == null ? '!' : ', '}" /><h:outputText
						value="#{request.remoteUser}"
						rendered="#{request.remoteUser != null}" /> <br />
					<h:button value="Logare" outcome="/valid_login.jsp"
						rendered="#{request.remoteUser == null}" /> <h:form
						rendered="#{request.remoteUser != null}">
						<h:commandButton value="Logout" action="#{securityService.logout}" />
					</h:form>

					<ul>
						#{msgs.latestForumPosts}
						<ui:repeat var="post" value="#{forum.posts}">
							<li>#{post}</li>
						</ui:repeat>
					</ul>
					</td>
					<td align="right" width="802px" valign="top">
					<table cellspacing="0" align="right" width="802px">
						<tr>
							<td align="right">
							<div class="meniu"><a href="index.jsf">#{msgs["menu.home"]}</a>
							<a href="add.jsf">#{msgs["menu.addMovie"]}</a> <a href="list.jsf">#{msgs["menu.listMovies"]}</a>
							<a href="contact.jsf">#{msgs["menu.contact"]}</a>
							<a href="../report">#{msgs["menu.report"]}</a></div>
							</td>
						</tr>
						<tr>
							<td
								style="border-left: 2px solid; border-top: 2px solid; padding: 10px"><ui:insert
								name="content">Default Content</ui:insert></td>
						</tr>
					</table>
					</td>
				</tr>
			</table>
		</tr>
		<tr>
			<td align="center" style="font-size: 10px; padding-top: 5px;">Copyright
			2010.</td>
		</tr>
	</table>
</h:body>
</html>